package com.czk.model.responsebilitychain;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/24 14:36
 */
public class Client {
    public static void main(String[] args) {
        PurchaseRequest purchaseRequest=new PurchaseRequest(1,4000f,1);
        CollegeApprover collegeApprover=new CollegeApprover("陈院主任");
        DepartmentApprover departmentApprover=new DepartmentApprover("张主任");
        // 设置成一个环形，从哪儿掉都可以，对哪儿调用没有影响
        departmentApprover.setApprover(collegeApprover);
        collegeApprover.setApprover(departmentApprover);
        collegeApprover.processRequest(purchaseRequest);
    }
}
